package com.orphan.audit.dao;

import com.orphan.audit.po.PreDiscount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wdn
 * @since 2021-07-16
 */

@Mapper
public interface PreDiscountMapper extends BaseMapper<PreDiscount> {


    @Select("select * from t_pre_discount")
    List<PreDiscount> findAll();

    @Select("select t_rate from t_pre_discount where t_money=#{tMoney}")
    float getRate(@Param("tMoney")float tMoney);


}
